<!DOCTYPE html>

<html lang='en'>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./lib/react.development16.4.0.js"></script>
    <script src="./lib/react-dom.development16.4.0.js"></script>
    <script src="./lib/babel.min.js"></script>
    <style>
      .txt{
          color: aqua;
          font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
          font-size: 18px;
      }
    </style>
</head>

<body>
    <div id="app">
    </div>
    <script type="text/babel">
        const mystyle = {
            color:'pink',
            fontSize:26
        }
        const el =  <div>
                    <span style={mystyle}>元素渲染！！！</span>
                    <h1 className="txt">我很高兴！！！！</h1>
                    </div>;
        ReactDOM.render(
            el,document.getElementById('app')
        );
    </script>
</body>

</html>